package com.zhuhaibaoxian.wanjiuseller.app;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

import cn.jpush.android.api.JPushInterface;


/**
 * Created by Administrator on 2018/3/30.
 *
 */
public class MyApplication extends Application {
    public static Context context = null;
    public static Handler handler = null;
    public static Thread mainThread = null;

    public static int mainThreadId = 0;
    private String token;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
//        BGASwipeBackHelper.init(MyApplication.this,null);
        handler = new Handler();
        mainThread = Thread.currentThread();
        mainThreadId = android.os.Process.myTid();
        JPushInterface.setDebugMode(false); 	// 设置开启日志,发布时请关闭日志
        JPushInterface.init(this);     		// 初始化 JPush
    }


}
